<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图练习</title>
    <style>
        div{
            float: left;
        }
        .z{
            width: 114px;
            height: 112px;
            background:url(images/abcd.jpg)no-repeat -480px -556px;
        }
        .x{
            width: 105px;
            height: 112px;
            background: url(images/abcd.jpg) no-repeat -253px -557px;
        }
        .d{
            width: 100px;
            height: 110px;
            background: url(images/abcd.jpg) no-repeat -362px -6px;
        }
    </style>
</head>
<body>
    <div class="z"></div>
    <div class="x"></div>
    <div class="d"></div>
</body>
</html>